﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVoteMVC.Data;
using MyVoteMVC.Domain;
using MyVoteMVC.Common;
using MyVoteMVC.Common.Objects;
using MyVoteMVC.Data.Repositories;


namespace MyVoteMVC.BackstageManagement.Controllers
{
    public interface  IUsersController
    {
        //增加用户
        int AddUser(string userEmail, string userRealName, string userPassword, int IsAD, int isLeader);

        //删除用户
         bool DeleteUser(string userEmailName);

        //保存用户
         bool EditUser(string userEmailName, string realName, int isAD, int isLeader);
         bool EditUser(string userEmailName, string realName, int isAD, int isLeader, string userPassword);

         //获取普通用户列表
         IList<VT_Users> GetOrdinaryUsersList();
         //获取领导用户列表
         IList<VT_Users> GetLeaderUsersList();
         //获取管理员列表
         IList<VT_Users> GetAdministratorList();

        //查询用户
         IList<VT_Users> FindUsersList(string name);
    }
}
